package com.zcxy.sys.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zcxy.mybatis.bean.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 邮箱验证码表
 *
 * @author zcc
 * @email 860474958@qq.com
 * @date 2020-06-08
 */
@Data
@TableName("verification_code")
@ApiModel(value = "VerificationCode", description = "邮箱验证码表实体对象")
public class VerificationCode  extends BaseEntity {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "ID", required = false)
    @TableId(type = IdType.UUID)
    private String id;
    @ApiModelProperty(value = "验证码", required = true)
    private String code;

    @ApiModelProperty(value = "状态：1有效、0过期", required = false)
    private String status;

    @ApiModelProperty(value = "验证码类型：email或者短信", required = false)
    private String type;

    @ApiModelProperty(value = "接收邮箱或者手机号码", required = true)
    private String value;

    @ApiModelProperty(value = "业务名称：如重置邮箱、重置密码等", required = false)
    private String scenes;
}
